/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * aaaaEntity
 * @author zequs
 * @version 2017-08-03
 */
public class JycCompany extends DataEntity<JycCompany> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 公司名称
	private Area province;		// province_id
	private String provinceName;		// 省份
	private String cityId;		// city_id
	private String cityName;		// 城市
	private String address;		// 详细地址
	private String master;		// 负责人
	private String masterPhone;		// 负责人电话
	private String ability;		// 业务能力
	private String userGroup;		// 用户编码
	private String supplierGroup;		// 通道编号
	private String boss;		// 老板姓名
	private String bossPhone;		// 老板电话
	private String remark;		// 备注信息
	private String level;		// 信用级别
	private String type;		// 类型
	private String businessName;		// 业务名称
	private String primaryBusiness;		// 主营业务
	private String otherBusiness;		// 其他业务
	private Date gmtCreate;		// 创建时间
	private Date gmtModified;		// 修改时间
	
	public JycCompany() {
		super();
	}

	public JycCompany(String id){
		super(id);
	}

	@Length(min=1, max=255, message="公司名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Area getProvince() {
		return province;
	}

	public void setProvince(Area province) {
		this.province = province;
	}
	
	@Length(min=0, max=45, message="省份长度必须介于 0 和 45 之间")
	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}
	
	@Length(min=0, max=64, message="city_id长度必须介于 0 和 64 之间")
	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	
	@Length(min=0, max=45, message="城市长度必须介于 0 和 45 之间")
	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	
	@Length(min=0, max=255, message="详细地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=1, max=45, message="负责人长度必须介于 1 和 45 之间")
	public String getMaster() {
		return master;
	}

	public void setMaster(String master) {
		this.master = master;
	}
	
	@Length(min=0, max=45, message="负责人电话长度必须介于 0 和 45 之间")
	public String getMasterPhone() {
		return masterPhone;
	}

	public void setMasterPhone(String masterPhone) {
		this.masterPhone = masterPhone;
	}
	
	@Length(min=0, max=11, message="业务能力长度必须介于 0 和 11 之间")
	public String getAbility() {
		return ability;
	}

	public void setAbility(String ability) {
		this.ability = ability;
	}
	
	@Length(min=0, max=45, message="用户编码长度必须介于 0 和 45 之间")
	public String getUserGroup() {
		return userGroup;
	}

	public void setUserGroup(String userGroup) {
		this.userGroup = userGroup;
	}
	
	@Length(min=0, max=45, message="通道编号长度必须介于 0 和 45 之间")
	public String getSupplierGroup() {
		return supplierGroup;
	}

	public void setSupplierGroup(String supplierGroup) {
		this.supplierGroup = supplierGroup;
	}
	
	@Length(min=0, max=45, message="老板姓名长度必须介于 0 和 45 之间")
	public String getBoss() {
		return boss;
	}

	public void setBoss(String boss) {
		this.boss = boss;
	}
	
	@Length(min=0, max=45, message="老板电话长度必须介于 0 和 45 之间")
	public String getBossPhone() {
		return bossPhone;
	}

	public void setBossPhone(String bossPhone) {
		this.bossPhone = bossPhone;
	}
	
	@Length(min=0, max=255, message="备注信息长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=1, max=11, message="信用级别长度必须介于 1 和 11 之间")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
	
	@Length(min=1, max=45, message="类型长度必须介于 1 和 45 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=255, message="业务名称长度必须介于 0 和 255 之间")
	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}
	
	@Length(min=0, max=100, message="主营业务长度必须介于 0 和 100 之间")
	public String getPrimaryBusiness() {
		return primaryBusiness;
	}

	public void setPrimaryBusiness(String primaryBusiness) {
		this.primaryBusiness = primaryBusiness;
	}
	
	@Length(min=0, max=255, message="其他业务长度必须介于 0 和 255 之间")
	public String getOtherBusiness() {
		return otherBusiness;
	}

	public void setOtherBusiness(String otherBusiness) {
		this.otherBusiness = otherBusiness;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="创建时间不能为空")
	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="修改时间不能为空")
	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	
}